package dao

import (
	"yundian/internel/app/models/orderoperatelog"
	"yundian/internel/pkg/dingo"
	"yundian/internel/pkg/dingo/global"
)

// 新增订单操作日志
func (d *OrderDao) InsertOrderOperateLog(m *orderoperatelog.OrderOperateLog) *dingo.ErrorWrap {
	db := global.Orm.Table("order_operate_log").Create(&m)
	return dingo.ErrorIf(db.Error, true)
}
